package com.spring.demo2.entity;

import org.springframework.stereotype.Component;

@Component
public class Person {
    private String school;
    private String address;

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Person() {
    }

    public Person(String school, String address) {
        this.school = school;
        this.address = address;
    }

    @Override
    public String toString() {
        return "Person{" +
                "school='" + school + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
